clear all;

cd ..; cd ..; cd ..;
load('code_main_model\6_implied_w_r\computation_results\data.mat','K','L','Y','alpha');
cd 'code_figure_table\OA\Figure OA10';

Y=sum(Y,2);
L=sum(L,2);
K=sum(K,2);

labor_growth=L./L(1)-1;
capital_growth=K./K(1)-1;
TFP=Y./(K.^alpha .* L.^(1-alpha));
TFP_growth=TFP./TFP(1)-1;

save('PA.mat','labor_growth','capital_growth','TFP_growth')